var copy={
    data(){
        return {
            cmd_copy_elements:null                    
        }
    },
    methods:{
        cmd_copy_do:function(){
            if(this.pages[this.activePageIndex].items.filter(item=>{return item.selected}).length<=0) return;            
            this.cmd_copy_elements=JSON.stringify(this.pages[this.activePageIndex].items.filter(item=>{return item.selected}));
            // console.log('is copy',this.cmd_copy_elements);
            this.$set(this.cmdActive,"paste",this.pages[this.activePageIndex].items.filter(item=>{return item.selected}).length>0)
            //this.cmdActive['paste']=this.pages[this.activePageIndex].items.filter(item=>{return item.selected}).length>0;
        },
        cmd_copy_active:function(selectCount){
            this.cmdActive['copy']=selectCount>0;
        }
    }
}

export default copy;
